package com.lz.library.base

import androidx.annotation.IntDef
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy

/**
 *  author: you : 2020/4/24
 */

@IntDef(
    ViewStatus.LOADING,
    ViewStatus.EMPTY,
    ViewStatus.SUCCESS,
    ViewStatus.TIMEOUT,
    ViewStatus.ERROR
)
@Retention(RetentionPolicy.SOURCE)
annotation class ViewStatus {

    companion object {
        const val LOADING = 0
        const val EMPTY = 1
        const val SUCCESS = 2
        const val TIMEOUT = 3
        const val ERROR = 4
    }
}